package com.swgk.core.util;

import java.util.Collection;

/**
 * @author: 杨畔
 * @date: 4/20/21 10:27 AM
 * @Description: 列表数组工具类
 */
public class ArrayUtil {
    /**
     * 判断列表null或者无数据
     */
    public static boolean isNullOrEmpty(Collection<?> collection) {
        return collection == null || collection.isEmpty();
    }

    /**
     * 判断列表不为null且有数据
     */
    public static boolean isNotNullAndEmpty(Collection<?> collection) {
        return collection != null && !collection.isEmpty();
    }
}